﻿using Jayden.Dll.Web.Enums;

namespace Jayden.Dll.Web.Json
{
	public class JsonString : JsonValue
	{
		public string Value;
		public JsonString() { }
		public JsonString(string value) { Value = value; }
		public string ToJson(RenderMode mode, int level) { return JsonHelper.EncodeString(Value); }
		public override string ToString() { return ToJson(RenderMode.Debug, 0); }
	}
}
